import pyttsx3
engine = pyttsx3.init()

voices = engine.getProperty('voices')
for voice in voices:
    if 'Chinese' in voice.name:
        engine.setProperty('voice', voice.id)
        break

engine.say('测试')
engine.runAndWait()
